home *** CD-ROM | disk | FTP | other *** search
/ Champak 122 / Vol 122.iso / games / gem_stri.swf / scripts / __Packages / mx / remoting / debug / GlobalLocalConnection.as < prev    next >
Encoding:
Text File  |  2011-01-06  |  4.7 KB  |  156 lines

  1. var ┬º\x01┬º = 310;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 310)
  5.    {
  6.       set("\x01",eval("\x01") + 48);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else
  10.    {
  11.       if(eval("\x01") != 358)
  12.       {
  13.          break;
  14.       }
  15.       set("\x01",eval("\x01") - 35);
  16.       if(┬º┬ºpop())
  17.       {
  18.          set("\x01",eval("\x01") + 377);
  19.       }
  20.    }
  21. }
  22. if(eval("\x01") == 323)
  23. {
  24.    set("\x01",eval("\x01") + 377);
  25.    play();
  26. }
  27. else if(eval("\x01") == 700)
  28. {
  29.    set("\x01",eval("\x01") - 510);
  30.    if(!_global.mx)
  31.    {
  32.       _global.mx = new Object();
  33.    }
  34.    ┬º┬ºpop();
  35.    if(!_global.mx.remoting)
  36.    {
  37.       _global.mx.remoting = new Object();
  38.    }
  39.    ┬º┬ºpop();
  40.    if(!_global.mx.remoting.debug)
  41.    {
  42.       _global.mx.remoting.debug = new Object();
  43.    }
  44.    ┬º┬ºpop();
  45.    if(!_global.mx.remoting.debug.GlobalLocalConnection)
  46.    {
  47.       var _loc1_ = null;
  48.       mx.remoting.debug.GlobalLocalConnection = _loc1_ = function(isController, receiver, domainName)
  49.       {
  50.          var _loc2_ = this;
  51.          var _loc3_ = _global;
  52.          super();
  53.          _loc2_.maxConnections = 10;
  54.          var sToMovie = "_NetDebugLocalToDebugMovie";
  55.          var sToController = "_NetDebugLocalToController";
  56.          var connectname = null;
  57.          if(isController)
  58.          {
  59.             connectname = sToController;
  60.             _loc2_.sendNames = new Array();
  61.             _loc2_.sendNames.push(sToMovie);
  62.             var _loc1_ = 0;
  63.             while(_loc1_ < _loc2_.maxConnections)
  64.             {
  65.                _loc2_.sendNames.push(sToMovie + _loc1_);
  66.                _loc1_ = _loc1_ + 1;
  67.             }
  68.             _loc2_.maxConnections = 0;
  69.          }
  70.          else
  71.          {
  72.             connectname = sToMovie;
  73.             _loc2_.sendNames = new Array();
  74.             _loc2_.sendNames.push(sToController);
  75.          }
  76.          _loc2_.setDomainName(domainName);
  77.          if(_loc3_.g_NetDebugLocalConnection == undefined)
  78.          {
  79.             _loc3_.g_NetDebugLocalConnection = new LocalConnection();
  80.             _loc3_.g_NetDebugLocalConnection.allowDomain = function()
  81.             {
  82.                return true;
  83.             };
  84.          }
  85.          if(receiver != null)
  86.          {
  87.             _loc3_.g_NetDebugLocalConnection.m_Receiver = receiver;
  88.             _loc3_.g_NetDebugLocalConnection.onData = function(dataobj)
  89.             {
  90.                _global.g_NetDebugLocalConnection.m_Receiver.onReceive(dataobj);
  91.             };
  92.             _loc3_.g_NetDebugLocalConnection.onCommand = function(commandobj)
  93.             {
  94.                _global.g_NetDebugLocalConnection.m_Receiver.onReceiveCommand(commandobj);
  95.             };
  96.             if(!_loc3_.g_NetDebugLocalConnection.connect(connectname))
  97.             {
  98.                var connected = false;
  99.                _loc1_ = 0;
  100.                while(_loc1_ < _loc2_.maxConnections)
  101.                {
  102.                   if(_loc3_.g_NetDebugLocalConnection.connect(connectname + _loc1_))
  103.                   {
  104.                      connected = true;
  105.                      break;
  106.                   }
  107.                   _loc1_ = _loc1_ + 1;
  108.                }
  109.                if(!connected)
  110.                {
  111.                   if(isController)
  112.                   {
  113.                      receiver.onReceiveError(new mx.remoting.debug.events.NetDebugDuplicateNCDError());
  114.                   }
  115.                }
  116.             }
  117.          }
  118.       };
  119.       mx.remoting.debug.GlobalLocalConnection.prototype = new Object().setDomainName = function(domainName)
  120.       {
  121.          var _loc1_ = domainName;
  122.          if(_loc1_ != null && _loc1_ != "")
  123.          {
  124.             this.sendPrefix = _loc1_ + ":";
  125.          }
  126.          else
  127.          {
  128.             this.sendPrefix = "";
  129.          }
  130.       };
  131.       mx.remoting.debug.GlobalLocalConnection.prototype = new Object().send = function(dataobj)
  132.       {
  133.          return this.sendRaw("onData",dataobj);
  134.       };
  135.       mx.remoting.debug.GlobalLocalConnection.prototype = new Object().sendCommand = function(commandObj)
  136.       {
  137.          return this.sendRaw("onCommand",commandObj);
  138.       };
  139.       mx.remoting.debug.GlobalLocalConnection.prototype = new Object().sendRaw = function(functionName, obj)
  140.       {
  141.          var _loc3_ = this;
  142.          var _loc2_ = true;
  143.          var snlen = _loc3_.sendNames.length;
  144.          var _loc1_ = 0;
  145.          while(_loc1_ < snlen)
  146.          {
  147.             _loc2_ = Boolean(_loc2_ & _global.g_NetDebugLocalConnection.send(_loc3_.sendPrefix + _loc3_.sendNames[_loc1_],functionName,obj));
  148.             _loc1_ = _loc1_ + 1;
  149.          }
  150.          return _loc2_;
  151.       };
  152.       ┬º┬ºpush(ASSetPropFlags(mx.remoting.debug.GlobalLocalConnection.prototype,null,1));
  153.    }
  154.    ┬º┬ºpop();
  155. }
  156.